<?php
namespace api\controllers;

use yii\filters\Cors;
use yii\rest\ActiveController;
use yii\web\Response;

/**
 * 资金相关
 * Class FundController
 * @package api\controllers
 */
class FundController extends ActiveController
{
    public function behaviors()
    {
        $behaviors = parent::behaviors();
        $behaviors['contentNegotiator']['formats']['text/html'] = Response::FORMAT_JSON;
        $behaviors['corsFilter'] = [
            'class' => Cors::class,
            'cors' => [
                'Origin' => ['*'],
                'Access-Control-Request-Method' => ['POST', 'HEAD'],
                'Access-Control-Request-Headers' => ['*'],
                'Access-Control-Allow-Credentials' => true,
                'Access-Control-Max-Age' => 86400,
            ],
        ];
        return $behaviors;
    }

    /**
     * 提现记录
     */
    public function actionPresents()
    {}

    /**
     * 收益记录
     */
    public function actionProfits()
    {}


}